package com.yin;

public class Util {

    private Util() {}

    public static void print(int[] arr) {

        for(int cur : arr) {
            System.out.print(cur + " ");
        }

        System.out.print("\n");
    }

    public static void print(String msg, int[] arr) {

        System.out.print(msg + " ");

        for(int cur : arr) {
            System.out.print(cur + " ");
        }

        System.out.print("\n");
    }

    public static void swap(int[] arr, int from, int to) {

        int temp = arr[to];
        arr[to] = arr[from];
        arr[from] = temp;
    }
}
